<?php
/**
 * Created by PhpStorm.
 * User: dust2
 * Date: 15-1-5
 * Time: 下午3:31
 */

/**
 * 用户－角色关联表播种
 * Class UserRoleTableSeeder
 */
class UserRoleTableSeeder extends Seeder
{
    public function run()
    {
        DB::table('user_role')->delete();

        DB::table('user_role')->insert(['user_id' => 1, 'role_id' => 1]);
        DB::table('user_role')->insert(['user_id' => 1, 'role_id' => 2]);
        DB::table('user_role')->insert(['user_id' => 2, 'role_id' => 2]);
        DB::table('user_role')->insert(['user_id' => 3, 'role_id' => 2]);
    }
}
